The A and B sections are different in a few ways:

The melodies is different.

The styles are also different. The A sections are legato, while the B section is more separated.

The keys are different.

 

What are the keys of the sections?